// token存储的key
const TOKEN_KEY = 'auth_token';

// 获取token
export const getToken = () => {
  return uni.getStorageSync(TOKEN_KEY);
};

// 设置token
export const setToken = (token) => {
  uni.setStorageSync(TOKEN_KEY, token);
};

// 移除token
export const removeToken = () => {
  uni.removeStorageSync(TOKEN_KEY);
};